Optimal. Leaf size=38 \[ -\frac {2 \sqrt {a} \sinh ^{-1}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a-a \csc (e+f x)}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {3801, 215} \[ -\frac {2 \sqrt {a} \sinh ^{-1}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a-a \csc (e+f x)}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 3801
Rubi steps
\begin {align*} \int \sqrt {-\csc (e+f x)} \sqrt {a-a \csc (e+f x)} \, dx &=\frac {2 \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \cot (e+f x)}{\sqrt {a-a \csc (e+f x)}}\right )}{f}\\ &=-\frac {2 \sqrt {a} \sinh ^{-1}\left (\frac {\sqrt {a} \cot (e+f x)}{\sqrt {a-a \csc (e+f x)}}\right )}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.79, size = 101, normalized size = 2.66 \[ \frac {2 \tan \left (\frac {1}{2} (e+f x)\right ) \sqrt {-\csc (e+f x)} \sqrt {a-a \csc (e+f x)} \left (\tanh ^{-1}\left (\sqrt {\sec ^2\left (\frac {1}{2} (e+f x)\right )}\right )+\sinh ^{-1}\left (\tan \left (\frac {1}{2} (e+f x)\right )\right )\right )}{f \left (\tan \left (\frac {1}{2} (e+f x)\right )-1\right ) \sqrt {\sec ^2\left (\frac {1}{2} (e+f x)\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.08, size = 296, normalized size = 7.79 \[ \left [\frac {\sqrt {a} \log \left (\frac {a \cos \left (f x + e\right )^{3} - 7 \, a \cos \left (f x + e\right )^{2} - 4 \, {\left (\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 3\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 3\right )} \sqrt {a} \sqrt {\frac {a \sin \left (f x + e\right ) - a}{\sin \left (f x + e\right )}} \sqrt {-\frac {1}{\sin \left (f x + e\right )}} - 9 \, a \cos \left (f x + e\right ) - {\left (a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) - a\right )} \sin \left (f x + e\right ) - a}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right )^{2} - 1\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 1}\right )}{2 \, f}, \frac {\sqrt {-a} \arctan \left (-\frac {{\left (\cos \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt {-a} \sqrt {\frac {a \sin \left (f x + e\right ) - a}{\sin \left (f x + e\right )}} \sqrt {-\frac {1}{\sin \left (f x + e\right )}}}{2 \, a \cos \left (f x + e\right )}\right )}{f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.11, size = 117, normalized size = 3.08 \[ -\frac {2 \sqrt {-\frac {1}{\sin \left (f x +e \right )}}\, \left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a \left (\sin \left (f x +e \right )-1\right )}{\sin \left (f x +e \right )}}\, \left (\arctan \left (\frac {1}{\sqrt {-\frac {2}{1+\cos \left (f x +e \right )}}}\right )-\arctan \left (\frac {\sin \left (f x +e \right ) \sqrt {-\frac {2}{1+\cos \left (f x +e \right )}}}{2}\right )\right )}{f \left (-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )\right ) \sqrt {-\frac {2}{1+\cos \left (f x +e \right )}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-a \csc \left (f x + e\right ) + a} \sqrt {-\csc \left (f x + e\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.03 \[ \int \sqrt {a-\frac {a}{\sin \left (e+f\,x\right )}}\,\sqrt {-\frac {1}{\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {- \csc {\left (e + f x \right )}} \sqrt {- a \left (\csc {\left (e + f x \right )} - 1\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________